<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script src="../node_modules/@vue/reactivity/dist/reactivity.global.js"></script>
    <script>
        let {effect, reactive, ref, toRef, toRefs} = VueReactivity;
        let proxyName = reactive({name: 'zs'});
        // let r = toRef(proxyName, 'name')
        let r = toRefs(proxyName)
        effect(()=>{
            app.innerHTML = r.name.value;
        })
        setTimeout(()=>{
            proxyName.name = "new"
        },1000)
    </script>
</body>
</html>